<!--反馈审批-->
<div class="rightDiv" [hidden]="pageIndex != 1">
  <div class="exciseTableDiv">
    <div>
      <nz-radio-group [(ngModel)]="tabType" [nzButtonStyle]="'solid'" (ngModelChange)="tabsChange($event)">
        <label nz-radio-button [nzValue]="'all'"><span>全部</span></label>
        <label nz-radio-button [nzValue]="5"><span>待审核</span></label>
        <label nz-radio-button [nzValue]="15"><span>未通过</span></label>
        <label nz-radio-button [nzValue]="10"><span>已反馈</span></label>
      </nz-radio-group>
    </div>
    <div style="margin-top: 15px">
      <div class="searchDiv text-right" style="margin-bottom: 15px">
        <label>
          <span>文件号：</span>
          <input nz-input placeholder="请输入" [(ngModel)]="searchObj.number"/>
        </label>
        <label>
          <span>制度名称：</span>
          <input nz-input placeholder="请输入" [(ngModel)]="searchObj.name"/>
        </label>
        <label>
          <span>作用对象：</span>
          <nz-select nzPlaceHolder="请选择" [(ngModel)]="searchObj.actionTarget">
            <nz-option *ngFor="let option of zydxList;" [nzValue]="option.text" [nzLabel]="option.text"></nz-option>
          </nz-select>
        </label>
        <label>
          <span>发布人：</span>
          <input nz-input placeholder="请输入" [(ngModel)]="searchObj.publisherName"/>
        </label>
        <label>
          <span>发布部门：</span>
          <input nz-input placeholder="请输入" [(ngModel)]="searchObj.deptName"/>
        </label>
        <label style="margin-right: 0">
          <button nz-button style="margin-right:10px" nzType="primary" (click)="clickSearch()">查询</button>
          <button nz-button nzType="default" (click)="resetSearch()">重置</button>
        </label>
      </div>
      <div>
        <ng-template #totalTemplate let-total>总共 {{ pageInfo.totalRecords? pageInfo.totalRecords:0 }} 条</ng-template>
        <nz-table
          #exciseBankTable
          nzBordered
          [nzData]="allList"
          [nzFrontPagination]="false"
          [nzShowPagination]="true"
          [nzPageIndex]="pageInfo.first"
          [nzTotal]="pageInfo.totalRecords"
          [nzShowTotal]="totalTemplate"
          [nzPageSize]="pageInfo.rows"
          [nzLoadingDelay]="1"
          [nzPageSizeOptions]="[10,20,30,50,100]"
          [nzShowQuickJumper]="true"
          [nzShowSizeChanger]="true"
          (nzPageIndexChange)="searchPageIndex($event)"
          (nzPageSizeChange)="searchPageSize($event)"
          [nzWidthConfig]="widthConfigs"
          [nzScroll]="{x: '2380px'}"
        >
          <thead>
          <tr>
            <th nzLeft="0px">序号</th>
            <th>文件号</th>
            <th>制度名称</th>
            <th>制度类型</th>
            <th>执行部门</th>
            <th>作用对象</th>
            <th>制度状态</th>
            <th>制度生效日期</th>
            <th>查看有效日期</th>
            <th>其他部门操作权限</th>
            <th>发布人</th>
            <th>发布部门</th>
            <th>发布日期</th>
            <th>反馈状态</th>
            <th nzRight="0px">操作</th>
          </tr>
          </thead>
          <tbody>
          <tr *ngFor="let item of exciseBankTable.data;let i = index;">
            <td nzLeft="0px">{{ i + 1 }}</td>
            <td>{{item.number}}</td>
            <td>{{item.name}}</td>
            <td>{{item.caseType}}</td>
            <td>{{item.deptNameStr}}</td>
            <td>{{item.actionTarget}}</td>
            <td>{{stateObj[item.state]}}</td>
            <td>{{item.effectiveDate | date: 'yyyy-MM-dd'}}</td>
            <td>
              <span *ngIf="item.noLimitViewDate">不限</span>
              <span *ngIf="!item.noLimitViewDate">
                  {{item.viewStartDate | date: 'yyyy-MM-dd'}}至{{item.viewEndDate | date: 'yyyy-MM-dd'}}
                </span>
            </td>
            <td>{{item.otherDeptAuth}}</td>
            <td>{{item.publisherName}}</td>
            <td>{{item.publishDeptName}}</td>
            <td>{{item.publishDate}}</td>
            <td>
              <span *ngIf="item.feedbackState == 5">审核中</span>
              <span *ngIf="item.feedbackState == 15" style="color: #FF4338">未通过</span>
              <span *ngIf="item.feedbackState == 10">已反馈</span>
            </td>
            <td nzRight="0px">
              <span *ngIf="item.feedbackState == 5" class="operaFont" (click)="audit(item, 1)">审批</span>
              <span *ngIf="item.feedbackState != 5" class="operaFont" (click)="audit(item, 2)">详情</span>
            </td>
          </tr>
          </tbody>
        </nz-table>
      </div>
    </div>
  </div>
</div>

<app-approval-form *ngIf="pageIndex == 2" [currObj]="currObj" [currType]="currType" [pageType]="2" (backemit)="backthis($event)"></app-approval-form>
